<?php
namespace app\admin\controller;
use app\admin\model\Mail;

class Index extends Common{

    public function _initialize()
    {
        parent::_initialize();
    }

    public function index()
    {
        $MailModel = new Mail();
        $this->assign([
            'mail_count'=>$MailModel->countAll(true)
        ]);
        return $this->fetch();
    }

    public function index_v2()
    {
        return $this->fetch();
    }
}